package top.college.jjb;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import java.awt.Dimension;
import javax.swing.border.BevelBorder;
import java.awt.Color;
import javax.swing.JTabbedPane;
import java.awt.GridBagLayout;
// 학생 정보 메인
public class main extends JFrame {
	
	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					
					main frame = new main();
					frame.setLocationRelativeTo(null);
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public main() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 1024, 768);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new BorderLayout(0, 0));
		
		JPanel toolbar = new JPanel();
		toolbar.setBorder(new BevelBorder(BevelBorder.LOWERED, Color.LIGHT_GRAY, Color.LIGHT_GRAY, Color.LIGHT_GRAY, Color.LIGHT_GRAY));
		contentPane.add(toolbar, BorderLayout.NORTH);
		
		JButton button = new JButton("학사정보관리");
		toolbar.add(button);
		
		JButton button_1 = new JButton("교직원관리");
		toolbar.add(button_1);
		
		JButton button_2 = new JButton("Admin");
		toolbar.add(button_2);
		
		JTabbedPane menu = new JTabbedPane(JTabbedPane.TOP);
		menu.setForeground(Color.LIGHT_GRAY);
		contentPane.add(menu, BorderLayout.CENTER);
		
		JPanel studen = new JPanel();
		menu.addTab("학생정보", null, studen, null);
		studen.setLayout(new BorderLayout(0, 0));
		
		JPanel smenu = new JPanel();
		smenu.setBorder(new BevelBorder(BevelBorder.LOWERED, Color.LIGHT_GRAY, Color.LIGHT_GRAY, Color.LIGHT_GRAY, Color.LIGHT_GRAY));
		smenu.setForeground(Color.LIGHT_GRAY);
		smenu.setPreferredSize(new Dimension(200, 10));
		studen.add(smenu, BorderLayout.WEST);
		smenu.setLayout(null);
		
		JButton sb = new JButton("개인정보");
		sb.setBounds(50, 52, 97, 23);
		smenu.add(sb);
		
		JButton sb1 = new JButton("수강내역");
		
		sb1.setBounds(50, 76, 97, 23);
		smenu.add(sb1);
		
		JButton sb2 = new JButton("성적조회");
		sb2.setBounds(50, 104, 97, 23);
		smenu.add(sb2);
		
		JButton sb3 = new JButton("봉사활동");
		sb3.setBounds(50, 132, 97, 23);
		smenu.add(sb3);
		
		JButton sb4 = new JButton("등록금");
		sb4.setBounds(50, 160, 97, 23);
		smenu.add(sb4);
		
		JButton sb5 = new JButton("장학금");
		sb5.setBounds(50, 188, 97, 23);
		smenu.add(sb5);
		
		JButton sb6 = new JButton("서류출력");
		sb6.setBounds(50, 216, 97, 23);
		smenu.add(sb6);
		
		JButton sb7 = new JButton("자격증조회");
		sb7.setBounds(50, 244, 97, 23);
		smenu.add(sb7);
		
		JButton sb8 = new JButton("출력");
		sb8.setBounds(50, 272, 97, 23);
		smenu.add(sb8);
		
		JButton btnNewButton = new JButton("Main");
		btnNewButton.setBounds(50, 26, 97, 23);
		smenu.add(btnNewButton);
		
		JPanel smain = new JPanel();
		smain.setBorder(new BevelBorder(BevelBorder.LOWERED, Color.LIGHT_GRAY, Color.LIGHT_GRAY, Color.LIGHT_GRAY, Color.LIGHT_GRAY));
		smain.setForeground(Color.LIGHT_GRAY);
		studen.add(smain, BorderLayout.CENTER);
		GridBagLayout gbl_smain = new GridBagLayout();
		gbl_smain.columnWidths = new int[]{0};
		gbl_smain.rowHeights = new int[]{0};
		gbl_smain.columnWeights = new double[]{Double.MIN_VALUE};
		gbl_smain.rowWeights = new double[]{Double.MIN_VALUE};
		smain.setLayout(gbl_smain);
	}
}
